import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
// import { TransformInterceptor } from './interceptor/intersform.interceptor';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  // 全局使用拦截器
  // app.useGlobalInterceptors(new TransformInterceptor());
  await app.listen(8888, () => {
    Logger.log('service is string at http://localhost:8888');
  });
}
bootstrap();
